package com.gaogzhen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gaogzhen.domain.SysRole;

public interface SysRoleMapper extends BaseMapper<SysRole> {
    /**
     * 根据用户id查询角色code
     * @param userId    用户id
     * @return          角色code
     */
    String getRoleCodeByUserId(Long userId);
}
